#include using namespace std; //prototype - prophecy that you will write this function void fun(int& x); //global variable const int y = 9; void main() { // y = 77; int x = 8; fun(x); cout << y << endl; //int grade; //cin >> grade; //// nearly the most unstructured thing in c++ //// switch(grade/10) //// { //// case 10: //// case 9: //// cout << "A" << endl; break; //// case 8: cout << "B" << endl; break; //// case 7: cout << "C" << endl; break; //// case 6: cout << "D" << endl; break; //// default:cout << "F" << endl; break; //// } //// //// int i = 0; ////tag: //// cout << i << endl; //// if(i < 10) //// { //// i++; //// goto tag; //// } //// /*if(grade >= 90) { cout << "A" << endl; } else if(grade >= 80) { cout << "B" << endl; } else if(grade >= 70) { cout << "C" << endl; } else if(grade >= 60) { cout << "D" << endl; } else { cout << "F" << endl; }*/ } void fun(int& x) { cout << x << "this is a function \n" ; // y = 99; }